// 深拷贝
const deepCopy = obj => {
    if (typeof obj !== 'object') {
        return obj;
    }
    const res = Array.isArray(obj) ? [] : {};
    for (const i in obj) {
        res[i] = deepCopy(obj[i]);
    }
    return res;
};

export { deepCopy };
